<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <svg width="800" height="800">
        <rect
        width="50"
        height="50"
        fill="red"
        ></rect>
        <line 
        x1="100"
        y1="100"
        x2="200"
        y2="200"
        stroke="blue"
        stroke-width="2"
        ></line>
        <line 
        x1="200"
        y1="200"
        x2="250"
        y2="300"
        style="stroke:blue;stroke-width: 2;"
        ></line>
         <circle
         cx="400"
         cy="400"
         r="50"
         stroke="pink"
         stroke-width="2"
         fill="red"
         ></circle>
          <line id="point"
        x1="75"
        y1="75"
        x2="76"
        y2="76"
        style="stroke:rgb(77, 255, 0);stroke-width: 2;"
        ></line>
    </svg>
    <button id="button">按钮</button>
    <script>
        const button = document.getElementById('button')
        button.addEventListener('click', function(){
          const point = document.getElementById('point')
          point.style.stroke = "red"
        })
    </script>
</body>
</html>